package edu.towson.greenteam.menu;
import junit.framework.Assert;

import org.junit.Test;



public class MenuItemTest {

	@Test
	public void testGetName() {
		MenuItem mi = new MenuItem("Caesar Salad", new Price(8.50f), 5);
		Assert.assertEquals("Caesar Salad", mi.getName());
	}
	
	@Test
	public void testMenuItemCreation() {
		MenuItem mi = new MenuItem("Caesar Salad", new Price(8.50f), 5);
		Assert.assertNotNull("Object is not null", mi);
	}
	
	@Test
	public void testGetMenuItem() {
		MenuItem mi = new MenuItem("Caesar Salad", new Price(8.50f), 150);
		Assert.assertEquals(mi, mi.getMenuItem());
	}
	
	@Test
	public void testSetName() {
		MenuItem mi = new MenuItem("Caesar Salad", new Price(8.50f), 150);
		mi.setName("Garden Salad");
		Assert.assertEquals("Garden Salad", mi.getName());
	}
	
	@Test
	public void testGetMaxQty() {
		MenuItem mi = new MenuItem("Caesar Salad", new Price(8.50f), 150);
		Assert.assertFalse(160==mi.getMaxQty());
	}

}